cmake_minimum_required(VERSION 2.8)

project(sub)

# SHARED表示生产动态库，STATIC表示生成静态库，默认生成静态库
add_library(sub SHARED sub.cpp)